package mapper;

import org.apache.ibatis.annotations.Select;
import pojo.User;

import java.util.List;

/**
 * @Classname UserMapper
 * @Description TODO
 * @Date 2022/3/20 11:34
 * @Created by Hui
 */
public interface UserMapper {

    List<User> selectAll();

    @Select("select * from tb_user where id = #{id} ")
    User selectById(int id);
}
